<?php
$pageStart = $pPaging['start'];
$pageEnd = $pPaging['end'];
$pageCur = $pPaging['page'];
if ($pageCur != $pageEnd):
?>
<div id='ajax_paging' class="pagination_ajax_footer">  
    <div class="pagination_ajax">
    <p class="showing"> 
      <span> --------- Showing <?=$pPaging['itemsPerPage']*$pageCur?> of <?=$pPaging['total']?> --------- </span>
    </p>
    <button onclick="javascript:<?=$pPaging['pag_function']?>(<?=$pPaging['next']?>, <?=$pPaging['itemsPerPage']?>)" >
      <span>See <?=$pPaging['itemsPerPage']?> More Deals</span>
    </button>
  </div>
</div>
<?php else: ?>
<div id='ajax_paging' class="pagination_ajax_footer">  
    <div class="pagination_ajax">
    <p class="showing"> 
      <span> --------- Showing <?=$pPaging['total']?> of <?=$pPaging['total']?> --------- </span>
    </p>
  </div>
</div>
<?php endif; ?>
